﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RepositoryEntity
{
    /// <summary>
    /// 耗材记录表
    /// </summary>
   public  class ConsumableRecord : BaseEntity
    {

        ///// <summary>
        ///// 主键ID
        ///// </summary>
        //[Required]
        //[Column(TypeName = "varchar(32)")]
        //public string ID { get; set; }

        /// <summary>
        /// 非耗材编号
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        [Required]
        public string ConsumbleId { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Required]
        public int  Num { get; set; }

        /// <summary>
        /// 操作类型
        /// </summary>
        [Required]
        public int Type { get; set; }


        ///// <summary>
        ///// 创建时间
        ///// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 添加人账号
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        [Required]
        public string Creator { get; set; }
    }
}
